package stream;

import java.util.Locale;
import java.util.stream.Stream;
import org.testng.annotations.Test;

/**
 * @author zhang peipei
 */
public class FinalOperate {


    @Test(description = "reduce  ")
    private void t1() {
        String a = Stream.of(1, 3, 9).reduce("a", (i1, i2) -> i1 + i2, (o1, o2) -> {

            return o1 + "-" + o2;
        });

        System.out.println(a);

    }


}
